﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo
{
    class Animals
    {
        private int leg;

        public int Leg
        {
            get { return this.leg; }
            set { this.leg = value; }
        }

        public void Eat()
        {
            Console.WriteLine("我能吃");
        }
        public void Walk()
        {
            Console.WriteLine("我能走路");
        }
        public void Sleep()
        {
            Console.WriteLine("我能睡觉");
        }
        public virtual void Call()
        {
            Console.WriteLine("我会叫");
        }
    }
}
